import request from '@/utils/request'

// 获取耗材仓库列表
export function getConsumablesStoreList(data) {
  return request.get('/system/materialRepository/list', { params: data })
}

// 添加耗材仓库
export function addConsumablesStore(data) {
  return request.post('/system/materialRepository', data)
}

// 删除耗材仓库
export function deleteConsumablesStore(id) {
  return request.delete(`/system/materialRepository/${id}`)
}

// 查找耗材仓库详情
export function getConsumablesStoreDetail(id) {
  return request.get(`/system/materialRepository/${id}`)
}

// 修改耗材仓库
export function updateConsumablesStore(data) {
  return request.put(`/system/materialRepository`, data)
}